package main.test.SparkAPI.Baics.classApi
import scala.io.Source
class MyExample {
  /**
   * You need a class here because
   * a function can live only inside a
   * class or singleton object.
   * @param filename
   * @return
   */
  def readFileIntoString(filename: String) =
    Source.fromFile(filename).getLines().mkString("\n")

}
